import request from "../request.js"

// 查询退单列表
function orderReturnApplys(){
	return request({
		url:`/lejuClient/orderReturn/orderReturnApplys`
	})
}

// 取消订单
function cancelOrder(orderId){
	return request({
		url:`/lejuClient/order/cancelOrder/${orderId}`,
		method: "post"
	})
}

// 申请退单
function addOrderReturnApply(data){
	return request({
		url:`/lejuClient/orderReturn/addOrderReturnApply`,
		method: "post",
		data
	})
}

// 获取退单公司地址
function getCompanyAddrss(){
	return request({
		url:`/lejuClient/orderReturn/getCompanyAddrss`
	})
}

export {
	orderReturnApplys,
	cancelOrder,
	addOrderReturnApply,
	getCompanyAddrss
}